import user from '../../utils/user'
Page({
    data: {
        cardPositive:'',
        cardBack:''
    },
    onLoad() {
        this.setData({
            cardPositive:user.ownIdCardFront,
            cardBack:user.ownIdCardBack,
        })
    },
    onReady() {

    },
    tochengeidcard(){
        wx.navigateTo({
            url: '/pages/card-info/card-info',
        })
    },
    onDetail(event){
        console.log(event, 'eevent')
        const { img } = event.currentTarget.dataset
        wx.previewMedia({
            sources: [{
                url: img,
                type: 'image'
            }],
        })
    }
})